]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st-im-text: Chain up to parent first in dispose()
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 12 Oct 2012 10:28:36 +0000 (12:28 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 12 Oct 2012 12:56:34 +0000 (14:56 +0200)
The actor's GtkIMContext is freed in dispose and reset in unrealize - as
ClutterActor's dispose will unrealize the actor if necessary, chaining
up to the parent after clearing the im context will result in warnings
if the actor is still realized, so chain up first.

https://bugzilla.gnome.org/show_bug.cgi?id=686016

src/st/st-im-text.c

index 874b841e680999a32b5a1c62a4942beb4e35cec3..6419c6661a60d1cc692514364bb345a50d5fb459 100644 (file)
@@ -68,9 +68,9 @@ st_im_text_dispose (GObject *object)
 {
   StIMTextPrivate *priv = ST_IM_TEXT (object)->priv;
 
-  g_clear_object (&priv->im_context);
-
   G_OBJECT_CLASS (st_im_text_parent_class)->dispose (object);
+
+  g_clear_object (&priv->im_context);
 }
 
 static void